 <template>
  <!-- 关注 -->
  <div class="concern_box">
    <!-- 标题 -->
    <signTitle1 :xxTitle="concernTitle"></signTitle1>

    <!-- 关注的人 v-for-->
    <!-- 单个 -->
    <div class="concernBigbox">
      <div
        class="concern_info_box"
        v-for="(item4, index) in concernBOX"
        :key="index"
      >
        <div class="concern_info_box_bg">
          <img :src="bg" alt="" />
        </div>
        <div class="concern_info_box_content" @click="toPersonInfo(index)">
          <div class="concern_headpic">
            <img :src="headpic" style="width: 84px; height: 84px" alt="" />
          </div>
          <div class="concern_info">
            <div class="concern_name">{{ item4.username }}</div>
            <div class="concern_intro">{{ item4.description }}</div>
            <!-- 其他数据 用flex -->
            <div class="concern_other">
              <div class="concern_fan">
                粉丝&nbsp;<span>{{ item4.fans }}</span>
              </div>
              <div class="concern_concern">
                关注&nbsp;<span>{{ item4.stars }}</span>
              </div>
              <div class="concern_album">
                专辑&nbsp;<span>{{ item4.album }}</span>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import signTitle1 from "./title1.vue";
export default {
  name: "",
  components: {
    signTitle1,
  },
  props: {
    concernBOX: Array,
  },
  data() {
    return {
      bg: require("../../assets/tianjin-twilight-city-scenery-preview.jpg"),
      headpic: require("../../assets/tianjin-twilight-city-scenery-preview.jpg"),
      concernTitle: [
        { sign: require("../../assets/follow.png"), who: "TA的关注" },
      ],
    };
  },
  methods: {
    toPersonInfo(index) {
      this.$parent.infoFlag = 1; //他人主页标记
      this.$parent.ID = this.concernBOX[index].id;
      // this.$router.push({
      //   path:"/info",
      //   query:{

      //   }
      // })
    },
  },
};
</script>
<style scoped>
.concern_title {
  display: flex;

  align-items: center;
  margin: 0 0 18px 0;
}
.concern_pic {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  margin: 0 12px 0 0;
  background: #21262c;
  border-radius: 50%;
  overflow: hidden;
} /**图标  要用filiter */

.concern_pic img {
  transform: translateY(-35px);
  filter: drop-shadow(#fff 0 35px); /**？？？？？？？？？？？？？？ */
}
.concern_wordbox {
  position: relative;
}
.who_concern {
  position: absolute;
  font-size: 24px;
  font-family: Microsoft YaHei UI;
  font-weight: bold;
  color: #21262c;
  line-height: 26px;
  top: 2px;
  border-radius: 5px;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.64);
}
.underline_green {
  width: 106px;
  height: 11px;
  margin-top: 20px;
  background: #659274;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.64);
}
/* 关注的名片 */
.concernBigbox {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 1200px;
  height: 365px;
  overflow: hidden;
}
.concernBigbox > div{
  margin-left: 13px;
}
.concern_info_box {
  overflow: hidden;
  position: relative;
  /* display: flex; */
  margin: 0 0 20px 0;
  width: 387px;
  height: 162px;
  border-radius: 5px;

  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.82);
} /******************************主盒子 */
.concern_info_box_bg {
  width: 387px;
  height: 162px;

  border-radius: 5px;
  position: relative;
}
.concern_info_box_bg img {
  filter: blur(4px);
  width: 110%;
  margin-top: -10px;
}
.concern_info_box_bg::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 387px;
  height: 162px;
  background-color: #000;
  opacity: 0.38;
}
.concern_info_box_content {
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 36px;
  right: 36px;
  /* margin: 38px 36px; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
}
.concern_info_box_content:hover{
cursor: pointer;
transform: scale(1.02);
}
.concern_headpic {
  width: 84px;
  height: 84px;
  overflow: hidden; /*防止图片超出 */
  border-radius: 50% !important;
}
.concern_info {
  width: 220px;
}
.concern_name {
  font-size: 18px;
  font-family: Microsoft YaHei UI;
  font-weight: bold;
  color: #ffffff;
  /* line-height: 18px; */
}
.concern_intro {
  font-size: 14px;
  font-family: Microsoft YaHei UI;
  font-weight: 300;
  color: #ffffff;
  margin: 10px 0;
  /* line-height: 66px; */
}
.concern_other {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-family: Microsoft YaHei UI;
  font-weight: 300;
  color: #ffffff;
  /* line-height: 68px; */
}
.concern_other span {
  font-size: 18px;
  font-family: Impact;
  font-weight: 400;
  color: #ffffff;
  /* line-height: 68px; */
  letter-spacing: 2px;
}
.concern_fan,
.concern_concern,
.concern_album {
  display: flex;
  align-items: center;
}
.concern_concern {
  margin: 0 22px;
}
</style>

 
